package com.itheima.collection.list;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Anomaly
 * @date 2023/1/1 18:54
 */
public class ListDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        list.add("e");
        list.add(3, "hh");
        list.add(6, "qq");

        System.out.println(list);

        System.out.println(list.remove(5));
        System.out.println(list);
    }
}
